<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2020-12-29
 * Time: 19:40
 */

use app\assets\FrontAsset;
use app\models\tableModel\SettingModel;

/* @var $this yii\web\View */
/* @var $isIframe int */

// 站点名称
$siteName = SettingModel::getValue(SettingModel::getKeySiteName());
// 站点LOGO
$siteLogo = SettingModel::getValue(SettingModel::getKeySiteLogo());

FrontAsset::addCss($this, '/css/front/login.css');
// 注册展示下Iframe引入CSS
if ($isIframe) $this->registerCss("
    .login-adlink,.mod_header{display:none;}
    .login-box-warp{position:fixed;top:0;left:0;z-index:99999}
    .login-newbg{background-image:none!important;}
    #footer{display:none;}
");

FrontAsset::addScript($this, '/js/front/login.js');
$this->registerJs("window.isIframe = {$isIframe};var app = new App();");
?>
<div id="page" class="">
    <div class="content">
        <div class="login-newbg" style="background-image: url('/images/login/bg.jpg');">
            <input type="hidden" id="hdRedirectUrl" name="redirectUrl" value="">
        </div>
        <div class="login-adlink"><a target="_blank"></a></div>
        <div class="content-layout">
            <div class="login-box-warp">
                <div id="container" class="login-box loading">
                    <div class="login-wrapper width-vertical login-label-icon login-view-password">
                        <div class="corner-icon-view view-type-qrcode" style="display: none;">
                            <i class="iconfont icon-qrcode"></i>
                            <div class="login-tip">
                                <div class="poptip">
                                    <div class="poptip-arrow"><em></em><span></span></div>
                                    <div class="poptip-content">扫码登录更安全</div>
                                </div>
                            </div>
                        </div>
                        <div class="login-content nc-outer-box">
                            <div class="login-password">
                                <div class="login-blocks login-switch-tab">
                                    <a href="javascript:void(0);" target="_self"
                                       class="password-login-tab-item">密码登录</a>
                                    <a href="javascript:void(0);" target="_self"
                                       class="sms-login-tab-item" style="display: none;">短信登录</a>
                                </div>
                                <div id="login-error" class="login-error" style="display: none;">
                                    <i class="iconfont icon-warning"></i>
                                    <div class="login-error-msg"></div>
                                </div>
                                <div id="login-form" class="login-form">
                                    <div class="fm-field">
                                        <div>
                                            <label class="fm-label-icon">
                                                <i class="icon-user iconfont" title="用户名"></i>
                                            </label>
                                        </div>
                                        <div class="input-plain-wrap input-wrap-loginid ">
                                            <input name="fm-login-id" type="text" class="fm-text"
                                                   id="fm-login-id" tabindex="1"
                                                   aria-label="请输入账号"
                                                   placeholder="请输入账号"
                                                   autocapitalize="off">
                                        </div>
                                    </div>
                                    <div class="fm-field">
                                        <div>
                                            <label class="fm-label-icon">
                                                <i class="icon-pwd iconfont" title="请输入登录密码"></i>
                                            </label>
                                        </div>
                                        <div class="input-plain-wrap input-wrap-password">
                                            <input name="fm-login-password" type="password" class="fm-text"
                                                   id="fm-login-password" tabindex="2"
                                                   aria-label="请输入登录密码" placeholder="请输入登录密码"
                                                   maxlength="40" autocapitalize="off">
                                        </div>
                                    </div>
                                    <div class="fm-btn">
                                        <button id="loginButton" type="submit" tabindex="3"
                                                class="fm-button fm-submit password-login">
                                            登录
                                        </button>
                                    </div>
                                    <div class="login-blocks sns-login-links" style="display: none;">
                                        <a href="#" target="_self" class="weibo-login">
                                            <i class="iconfont"></i>微博登录
                                        </a>
                                        <a href="#" target="_self" class="alipay-login">
                                            <i class="iconfont"></i>支付宝登录
                                        </a>
                                    </div>
                                    <div class="login-blocks login-links">
                                        <a href="#" target="_blank" class="forgot-password-a-link"
                                            style="display: none;">
                                            忘记密码
                                        </a>
                                        <a  href="#" target="_blank" class="forgot-username-a-link"
                                            style="display: none;">
                                            忘记用户名
                                        </a>
                                        <a href="#" target="_blank" class="register-a-link">
                                            免费注册
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?=$this->render('../common/footer')?>
